package com.thenie.dao.impl;

import com.thenie.dao.OrderDao;
import com.thenie.pojo.Order;

public class OrderDaoImpl extends BaseDao implements OrderDao {


    @Override
    public int createOrder(Order order) {
        String sql="INSERT INTO t_order(`order_id`,`create_time`,`price`,`status`,`user_id`)VALUES(?,?,?,?,?)";
       return update(sql, order.getOrderId(),order.getCreateTime(),order.getPrice(),order.getStatus(),order.getUserId());
    }
}
